﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageLinkedColumns.aspx.cs" Inherits="ParentChildLookup.Pages.ManageLinkedColumns" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="ltPageTitle" runat="server" EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    <SharePoint:EncodedLiteral ID="ltPageTitleInTitle" runat="server" EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <SharePoint:EncodedLiteral ID="ltPageDescription" runat="server" EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
            <td id="mngfieldToobar">
                <wssuc:toolbar id="onetidMngFieldTB" runat="server">
                    <template_buttons>
                        <wssuc:ToolBarButton NavigateUrl="/_layouts/ParentChildLookup/SelectObject.aspx" runat="server" id="btnSave" ImageUrl="/_layouts/images/save.gif" />
                        <wssuc:ToolBarButton NavigateUrl="/_layouts/ParentChildLookup/SelectObject.aspx" runat="server" id="btnCancel" ImageUrl="/_layouts/images/EXITEDIT.GIF" />
					</template_buttons>
                </wssuc:toolbar>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%" cellpadding="0" cellspacing="0" border="0" id="onetidMngCytpeRptrTable">
                    <colgroup>
                        <col width="10%" />
                        <col width="20%" />
                        <col width="70%" />
                    </colgroup>
                    <tr>
                        <th scope="col" class="ms-vh2-nofilter">
                            &nbsp;&nbsp;&nbsp;<SharePoint:EncodedLiteral ID="ltSelected" runat="server" EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="Th1" class="ms-vh2-nofilter">
                            <SharePoint:EncodedLiteral ID="ltLookupField" runat="server" EncodeMethod='HtmlEncode' />
                        </th>
                        <th scope="col" id="ParentTypeHeader" class="ms-vh2-nofilter">
                            <SharePoint:EncodedLiteral ID="ltLookupLink" runat="server" EncodeMethod='HtmlEncode' />
                        </th>
                    </tr>
                    <asp:Repeater ID="RptListOfLookupFields" OnItemDataBound="RptListOfLookupFields_ItemDataBound" runat="server">
                        <HeaderTemplate />
                        <ItemTemplate>
                            <tr>
                                <td class="ms-vb2" >
                                    <asp:CheckBox ID="chkSelected" runat="server" />
                                </td>
                                <td class="ms-vb2">
                                    <asp:Literal Visible="false" ID="ltInternalName" runat="server"></asp:Literal>                                
                                    <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                                </td>
                                <td class="ms-vb2">
                                    <asp:DropDownList ID="ddlLookups" DataSource="<%# SourceTable %>"
                                        runat="server" DataTextField="Title" DataValueField="InternalName">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="ms-alternating">
                                  <td class="ms-vb2">
                                    <asp:CheckBox ID="chkSelected" runat="server" />
                                </td>
                                <td class="ms-vb2">
                                    <asp:Literal Visible="false" ID="ltInternalName" runat="server"></asp:Literal>
                                    <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                                </td>
                                <td class="ms-vb2">
                                    <asp:DropDownList ID="ddlLookups" DataSource="<%# SourceTable %>"
                                        runat="server" DataTextField="Title" DataValueField="InternalName">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </AlternatingItemTemplate>
                        <FooterTemplate />
                    </asp:Repeater>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
